package mylittleinvestigations.Collisions;

import java.util.ArrayList;
import mylittleinvestigations.Vector2;

public class CollisionParameter
{
    public float OverlapDistance;
    public Vector2 OverlapAxis;
    
    public ArrayList<OverlapEntry> OverlapEntryList;
    
    public CollisionParameter()
    {
        this.OverlapEntryList = new ArrayList<OverlapEntry>();
    }
    
    public void AddOverlapEntry(float overlapDistance, Vector2 overlapAxis, CollidableObject collidableObject1, CollidableObject collidableObject2)
    {
        OverlapEntry overlapEntry = new OverlapEntry();
        
        overlapEntry.OverlapDistance = overlapDistance;
        overlapEntry.OverlapAxis = overlapAxis;
        overlapEntry.CollidableObject1 = collidableObject1;
        overlapEntry.CollidableObject2 = collidableObject2;
        
        this.OverlapEntryList.add(overlapEntry);
    }
}